﻿package {
	
	//import flash.display.*;
	
	public class Camera2D extends Object {
		var _x:Number;
		var _y:Number;
	
		var _viewx:Number=0;
		var _viewy:Number=0;
		
		public function Camera2D(xx:Number=0,yy:Number=0):void{
			move(xx,yy);
		}
		
		public function move(xx:Number,yy:Number):void{
			_x=xx;
			_y=yy;
			
			_viewx+=xx;
			_viewy+=yy;
		}
		public function moveTo(xx:Number,yy:Number):void{
			_x=xx;
			_y=yy;
			
			_viewx+=xx;
			_viewy+=yy;
		}
		
		public function Reset():void{
			_x=0;
			_y=0;
		}
		public function Update():void{
			
		}
	
	}
}